<?php
        $baseurl = current(split("index", $_SERVER['PHP_SELF']));
        echo "<p class='banner' align='right' onmousedown='tekan(event);' onmousemove='gerak(event);' onmouseup='lepas();' onmouseout='lepas();'> <a href='Javascript:close_slip()'> <img src='".$baseurl."/img/no4.gif' alt='[ X ]'> </a></p>";
            echo "<form id='edit_employers'>";
            echo "<table>";
                echo "<tr><td colspan=2> Account Detail </td></tr>";
                echo "<input type='hidden' name='data[Employer][id]' value='".$this->data['Employer']['id']."'>";
                echo "<tr><td>ID  </td><td>: ".$this->data['Employer']['id']."</td></tr>";
                echo "<tr><td>Username  </td><td>: <input type='text' name='data[Employer][username]' value='".$this->data['Employer']['username']."'></td></tr>";
                echo "<tr><td>Password  </td><td>: <input type='text' name='data[Employer][password]' value='".$this->data['Employer']['password']."'></td></tr>";
                echo "<tr><td>Status  </td><td>: <input type='text' name='data[Employer][status]' value='".$this->data['Employer']['status']."'></td></tr>";
                
                echo "<tr><td colspan=2> Contact Person </td></tr>"; 
                echo "<tr><td>Salution  </td><td>: <input type='text' name='data[Employer][salution]' value='".$this->data['Employer']['salution']."'></td></tr>";
                echo "<tr><td>Name  </td><td>: <input type='text' name='data[Employer][full_name]' value='".$this->data['Employer']['full_name']."'></td></tr>";
                echo "<tr><td>CP Email  </td><td>: <input type='text' name='data[Employer][cp_email]' value='".$this->data['Employer']['cp_email']."'></td></tr>";
                
                echo "<tr><td colspan=2> Comapny Detail </td></tr>";
                echo "<tr><td>Company  </td><td>: <input type='text' name='data[Employer][company_name]' value='".$this->data['Employer']['company_name']."'></td></tr>";
                echo "<tr><td>Inustry  </td><td>: <input type='text' name='data[Employer][industry]' value='".$this->data['Employer']['industry']."'></td></tr>";
                echo "<tr><td>Location  </td><td>: <input type='text' name='data[Employer][location]' value='".$this->data['Employer']['location']."'></td></tr>";
                echo "<tr><td>City ID  </td><td>: <input type='text' name='data[Employer][city_id]' value='".$this->data['Employer']['city_id']."'></td></tr>";
                echo "<tr><td>Website  </td><td>: <input type='text' name='data[Employer][website]' value='".$this->data['Employer']['website']."'></td></tr>";
                echo "<tr><td>Logo  </td><td>: <input type='text' name='data[Employer][logo]' value='".$this->data['Employer']['logo']."'></td></tr>";
                echo "<tr><td>Email  </td><td>: <input type='text' name='data[Employer][email]' value='".$this->data['Employer']['email']."'></td></tr>";
				// $options[0] = 'Not Good';
				// $options[1] = 'Good';
				// $options[2] = 'Very Good';
				// echo $this->data['Employer']['username'];
				// $options[0] = 'Not Good';
				// $options[1] = 'Good';
				// $options[2] = 'Very Good';
				// echo "<tr><td>Reputation</td>";
				// echo "<td> : " . $form->input('reputation', array('label'=>false,'options'=>$options)) . "</td></tr>";
				?>
				<tr>
					<td>Reputation</td>
					<td> : 
					<select name="data[Employer][reputation]">
						<option value="1" <?php echo ($this->data['Employer']['reputation'] == 1) ? ("selected") : (""); ?>>Not Good</option>
						<option value="2" <?php echo ($this->data['Employer']['reputation'] == 2) ? ("selected") : (""); ?>>Good</option>
						<option value="3" <?php echo ($this->data['Employer']['reputation'] == 3) ? ("selected") : (""); ?>>Very Good</option>
					</select>
					</td>
				</tr>
				<?php
                echo "<tr><td></td><td>&nbsp&nbsp&nbsp";
                echo $ajax->submit('Save', array('div' => false, 'class' => 'submitbutton', 
                                    'url' => array('controller'=> 'employers','action' => 'edit_admin'), 
                                    'update' => 'result')
                                    );
                echo " <input type='button' onClick='close_slip();' value='Cancel'></td></tr>";
            echo "</table>";
            echo "</form>";
?>